package RMI_Server;

import java.util.Scanner;


public class OpenServer {
    
	public static void main(String[] args) {
	//	System.out.println(IGestionRemota.class.toString());
	//	System.out.println(IGestionRemota.class.getProtectionDomain().getCodeSource().getLocation().toString());
       
		if(System.getSecurityManager() == null) {
            //System.setSecurityManager(new SecurityManager());
        } 
		String enter;
		Servicios s = new Servicios();
		s.publicarServicio();
		System.out.println("");
		System.out.println("Escriba fin y presione enter para finalizar ejecucion de servidor");
		Scanner sc = new Scanner(System.in);
		enter = sc.next();
		System.out.println("Ejecucion de servidor finalizada");
		s.cerrar();
	}
}
